// ------------------------------------------------------ Naming ------------------------------------------------------
Name F-4C Phantom II
ShortName f4cphantom
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconf4cphantom
Model CowPack.f4cphantom
Texture skinf4cphantom
//Third Person Camera Distance
CameraDistance 8.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 5.0
HasGear True
ModelScale 1.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 1.25
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.6
TurnRightSpeed 1.6
//Pitch modifiers
LookUpSpeed 1.6
LookDownSpeed 1.5
//Roll modifiers
RollLeftSpeed 4.5
RollRightSpeed 4.5
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.4
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -92 -12 -15
WheelPosition 1 -92 -12 15
WheelPosition 2 12 -9 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 54 2 0 nose advmetalcompound
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Missile
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 1
ShootDelaySecondary 65
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 41 7 1 core 20milg
ShootPointSecondary 57 11 47 leftWing
ShootPointSecondary 57 11 31 leftWing
ShootPointSecondary 57 11 -47 rightWing
ShootPointSecondary 57 11 -31 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 4
AllowAllAmmo False
AddAmmo aim9emissile
AddAmmo aim9bmissile
AddAmmo unguidedrocket
AddAmmo agm12bbullpup
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 2000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 95 21 1
Passengers 1
Passenger 1 69 25 1 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound cowjetstart
StartSoundLength 60
PropSound cowjetfly
PropSoundLength 27
ShootSoundPrimary revolvercannon
ShootSoundSecondary unguidedrocketfire
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 cowairframe 25 metalcompound 3 advmetalcompound
AddRecipeParts coreWheel 2 cowwheel
AddRecipeParts nose 15 metalcompound
AddRecipeParts rightWing 1 cowwings
AddRecipeParts leftWing 1 cowwings
AddRecipeParts tail 1 cowtail
AddRecipeParts tailWheel 1 metalcompound
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 225 -80 14 -11 212 30 24
SetupPart tail 200 -146 25 -3 66 47 10
SetupPart nose 155 134 12 -7 29 17 16
SetupPart rightWing 135 -42 14 15 60 10 86
SetupPart leftWing 135 -41 14 -102 59 9 87
BulletDetection 10

CollisionPoint 166 17 0 nose
CollisionPoint 116 18 0 core
CollisionPoint 46 26 24 core
CollisionPoint -20 27 24 core
CollisionPoint -21 27 -22 core
CollisionPoint 46 26 -22 core
CollisionPoint -24 21 -77 leftWing
CollisionPoint -24 21 77 rightWing

IsExplosionWhenDestroyed true

//----------------------------Exhaust Effects
//1st gear change
AddEmitter explode 1 [-82,20,13] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core
AddEmitter explode 1 [-82,20,-11] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core

//1st gear
AddEmitter explode 1 [-82,20,13] [1,1,1] [0,0.2,0] 0.05 0.12 0 1 core
AddEmitter explode 1 [-82,20,-11] [1,1,1] [0,0.2,0] 0.05 0.12 0 1 core
//2nd gear change

//2nd gear
AddEmitter flansmod.fmflame 1 [-82,20,13] [1,1,1] [0,0.7,0] 0.12 0.5 0 1 core
AddEmitter flansmod.fmflame 1 [-82,20,-11] [1,1,1] [0,0.7,0] 0.12 0.5 0 1 core

//3rd gear change
AddEmitter hugeexplosion 1 [-8,20,1] [1,1,1] [0,4,0] 0.53 0.54 0 1 core

//3rd gear
AddEmitter flansmod.fmflame 1 [-82,20,13] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter flansmod.fmflame 1 [-82,20,-11] [1,1,1] [0,0.5,0] 0.5 2 0 1 core

//4th gear change
AddEmitter flansmod.fmflame 1 [-82,20,13] [1,1,1] [0,5,0] 0.7 0.75 0 1 core
AddEmitter flansmod.fmflame 1 [-82,20,-11] [1,1,1] [0,5,0] 0.7 0.75 0 1 core

Description American Fighter Jet_20mm Gun_AIM-9E Air-Air Missile_Unguided Rocket_AGM-12B Bullpup Missile